package com.ok.activity.domain.po;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动
 * </p>
 *
 * @author lhw
 * @since 2024-04-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ok_activity")
@ApiModel(value="OkActivity对象", description="活动")
public class OkActivity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "活动名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "活动描述")
    @TableField("synopsis")
    private String synopsis;

    @ApiModelProperty(value = "图片")
    @TableField("img")
    private String img;

    @ApiModelProperty(value = "对应积分")
    @TableField("integral")
    private Double integral;

    @ApiModelProperty(value = "参加人数")
    @TableField("people_num")
    private Integer peopleNum;

    @ApiModelProperty(value = "状态 1-开启 0-关闭")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "活动凭证")
    @TableField("voucher")
    private String voucher;

    @ApiModelProperty(value = "雪花id标识")
    private Long snowflakeId;

    @ApiModelProperty(value = "活动数量")
    private Integer num;
}
